package com.bbh.plugin.single.privilege.core.repository;

import com.bbh.plugin.single.privilege.core.vo.tree.AreaVo;
import com.bbh.plugin.single.privilege.core.vo.tree.ZTreeNoneAjaxVo;
import com.bbh.plugin.single.privilege.core.entity.Area;
import org.springframework.boot.config.mybatis.MyBatisRepository;

import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface AreaMapper extends Mapper<Area> {

    /*
    * 自定义查找
    * */
    List<AreaVo> findList(Map<String, Object> params);

    /*
     * 递归查询
     * */
    List<ZTreeNoneAjaxVo> selectTreeArea(Map<String, Object> params);
}